V=int(input())
V_max=int(input())
chaosubi=(V-V_max)/V_max
if V <= V_max:
    print('No')
elif chaosubi <= 0.1:
    print('Warning')
elif 0.1 < chaosubi <= 0.2:
    print('100')
elif 0.2 < chaosubi <= 0.5:
    print('500')
elif 0.5 < chaosubi <= 1:
    print('1000')
elif chaosubi >= 1:
    print('2000')